package com.gk.carshopsys.dao;

import com.gk.carshopsys.pojo.Cust;
import com.gk.carshopsys.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface CustDao {

    //批量新增客户
    public int addCustByList(List<Cust> list);

    //查询地区分布数量
    public List<Map> findAddressNum();

    //查询客户总数
    public Long findcustcount();

    //根据id查询客户
    public List<Cust> findCustId(Long id);

    //查询客户
    public List<Cust> findCust(Cust cust);

    //添加客户
    public int addCust(Cust cust);

    //更新客户
    public int updateCust(Cust cust);

    //删除客户
    public int delCust(List<Integer> idist);

}
